home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pvm34b3.zip / pvm34b3 / pvm3 / gexamples / PGON / Makefile
Makefile  |  1997-07-22  |  2KB  |  77 lines

  1. #
  2. # $Id: Makefile,v 1.3 1997/05/08 16:08:11 pvmsrc Exp $
  3. #
  4. # Custom section
  5. # Set ARCH to your architecture type (SUN4, HP9K, RS6K, SGI, etc)
  6. # if ARCH = BSD386 then set ARCHLIB = -lrpc
  7. # if ARCH = SGI    then set ARCHLIB = -lsun
  8. # if ARCH = I860   then set ARCHLIB = -lrpc -lsocket
  9. # if ARCH = IPSC2  then set ARCHLIB = -lrpc -lsocket
  10. # otherwise leave ARCHLIB blank
  11. #
  12. # ARCH and ARCHLIB are set for you if you use 'aimk'.
  13. #
  14. #PVM_ARCH    =    PGON
  15. ARCHLIB        =    -lrpc -lnx
  16. # END of custom section - leave this line here
  17. #
  18. PVMDIR        =    ../..
  19. PVMLIB        =    $(PVMDIR)/lib/$(PVM_ARCH)/libpvm3.a
  20. PVMPELIB    =    $(PVMDIR)/lib/$(PVM_ARCH)/libpvm3pe.a
  21. SDIR        =    $(PVMDIR)/gexamples
  22. BDIR        =    $(PVMDIR)/bin
  23. XDIR        =    $(BDIR)/$(PVM_ARCH)
  24.  
  25. CC            =    icc
  26. CFLOPTS        =    -O
  27. CFLAGS        =    $(CFLOPTS) -I$(PVMDIR)/include
  28. LIBS        =    $(PVMLIB) $(ARCHLIB)
  29. NODELIBS    =    $(PVMPELIB) $(ARCHLIB)
  30. GLIBS        =    $(PVMDIR)/lib/$(PVM_ARCH)/libgpvm3.a
  31.  
  32. F77         =    if77
  33. FFLOPTS        =    -O
  34. FFLAGS        =    $(FFLOPTS)
  35. FLIBS        =    $(PVMDIR)/lib/$(PVM_ARCH)/libfpvm3.a
  36. FPELIBS        =    $(FLIBS)
  37.  
  38.  
  39. default: gexamp
  40.  
  41. all: joinleave gexamp thb tnb trsg frsg
  42.  
  43. $(XDIR):    $(BDIR)
  44.     - mkdir $(XDIR)
  45.  
  46. $(BDIR):
  47.     - mkdir $(BDIR)
  48.  
  49.  
  50. joinleave: $(SDIR)/joinleave.c
  51.     $(CC) $(CFLAGS) -o joinleave $(SDIR)/joinleave.c $(GLIBS) $(NODELIBS)
  52.     mv joinleave $(XDIR)
  53.  
  54. gexamp: $(SDIR)/gexamp.c
  55.     $(CC) $(CFLAGS) -o gexamp $(SDIR)/gexamp.c $(GLIBS) $(NODELIBS)
  56.     mv gexamp $(XDIR)
  57.  
  58. thb: $(SDIR)/thb.c
  59.     $(CC) $(CFLAGS) -o thb $(SDIR)/thb.c $(GLIBS) $(NODELIBS)
  60.     mv thb $(XDIR)
  61.  
  62. tnb: $(SDIR)/tnb.c
  63.     $(CC) $(CFLAGS) -o tnb $(SDIR)/tnb.c $(GLIBS) $(NODELIBS)
  64.     mv tnb $(XDIR)
  65.  
  66. trsg: $(SDIR)/trsg.c
  67.     $(CC) $(CFLAGS) -o trsg $(SDIR)/trsg.c $(GLIBS) $(NODELIBS)
  68.     mv trsg $(XDIR)
  69.  
  70. frsg: $(SDIR)/frsg.f
  71.     $(F77) $(FFLAGS) -o frsg $(SDIR)/frsg.f $(FPELIBS) $(GLIBS) $(NODELIBS)
  72.     mv frsg $(XDIR)
  73.  
  74. clean:
  75.     rm -f *.o  thb tnb gexamp joinleave trsg frsg
  76.  
  77.